<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">商品类型列表</h1>
    </div>

    <div class="well">
    <a class="btn btn-primary" href="{:url('admin/Type/add')}">新增</a>
        <!-- table -->
        <table class="table table-bordered table-hover table-condensed">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>商品类型名称</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach $data as $v}
                    <tr class="success">
                        <td>{$v.id}</td>
                        <td>{$v.type_name}</td>
                        <td>
                            <a href="{:url('admin/Type/edit',['id'=>$v.id])}"> 编辑 </a>
                            <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='{:url(\'/admin/Type/delete\',[\'id\'=>$v.id])}'"> 删除 </a>
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    </div>
</div>